package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

public interface OrderInfoService {
    boolean hasStock(Long skuId, Integer skuNum);

    Long saveOrder(OrderInfo orderInfo);

    OrderInfo getOrderInfo(Long orderId);

    void cancelOrder(Long orderId);


    void updateOrder(String orderId, ProcessStatus processStatus);

    void updateOrder(Long orderId);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);
    //构建库存微服务所需要的数据
    public Map initWareOrder(OrderInfo orderInfo);
    //构建库存微服务所需要的数据
    public String initWareOrder(Long orderId);

    void sendOrderStatus(Long orderId);
}
